<%@ page language="java" import="java.util.*" contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/meta.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!-- js import -->
<script type="text/javascript" src="${ctx}/js/easyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="${ctx}/js/tools-upload.js"></script>
<%@ page import="com.dwusoft.util.ConfigUtil" %>
<%
  String attachDomain = "";
  String attachServerUrl = "";
  attachDomain = ConfigUtil.getInstance().getValueByKey("dwusoft_attachment.properties", "DOMAIN");
  attachServerUrl =  ConfigUtil.getInstance().getValueByKey("dwusoft_attachment.properties","atta_server");
%>
<script type="text/javascript">
	var myAttaServer = 'http://api.dwusoft.com/sweb/';//'<%=attachServerUrl%>';
	var myAttaDomain = '<%=attachDomain%>';
	
	//选择文件执行方法
	function addUploadFile(num){
	   var attaServerUrl =myAttaServer+"attachment/media/upload.action?isRemote=T";
	  $.toolsupload.upload({
	    attaDomain:myAttaDomain,
	    attaServerUrl:attaServerUrl,
	    fileNum:num,
	    tokenId:''
	  });
	}
</script>

<body  style="font-size:12px;font-family: 微软雅黑">

<div msg="第1组">
  <label onclick="addUploadFile(1);" for="uploadFileInput" class="fDef_Btn" >点击选择文件</label>
  <label id="fileUpText_1_subbtn" onclick="$.toolsupload.uploadSubmit(this);" style='display:none;' class="fDef_Btnse" >开始上传</label>
  <input id="fileUpText_1" name="attaUrl" type="hidden" class="fDef_Input" > <!-- 此元素的name="attaUrl" 对照修改后台属性，以备入库 -->
  <A id="fileUpText_1_a" href="javascript:void(0);" target="_bank"></A>
  <label id="fileUpText_1_msg" ></label> <!-- 此元素可不用 -->
</div>

	<!-- 附件上传iframe元素 -->
<iframe name='uploadIframe' id='uploadIframe' frameborder='0' height='0' width='0'></iframe>
<div id="uploadIframeDefDiv" style="height:0px;" ></div>

</body>
